<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title></title>
	<script>
		// 1，接收两名学生的成绩，比较两个人成绩高低，并输出分数差
		var xuesheng1= Number(prompt('请输入您的考试成绩'));
		var xuesheng2= Number(prompt('请输入您的考试成绩'));
		if(xuesheng1>100 || xuesheng1<0){
			console.log('您的输入错误');
		}else if(xuesheng2>100||xuesheng2<0 ){
			console.log('您的输入错误');
		}else if(xuesheng1>xuesheng2){
			console.log(xuesheng1-xuesheng2);
			console.log(xuesheng1);
		}else if(xuesheng2>xuesheng1){
			console.log(xuesheng2-xuesheng1);
			console.log(xuesheng2);
		}
	</script>
</head>
<body>
	
</body>
</html>